package com.farm.learn.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/* *
 *功能：课件播放时常类
 *详细：
 *
 *版本：v2.1
 *作者：FarmCode代码工程
 *日期：20150707114057
 *说明：
 */
@Entity(name = "PlayTime")
@Table(name = "wlp_u_playtime")
public class Playtime implements java.io.Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GenericGenerator(name = "systemUUID", strategy = "uuid")
	@GeneratedValue(generator = "systemUUID")
	@Column(name = "ID", length = 32, insertable = true, updatable = true, nullable = false)
	private String id;
	@Column(name = "HOURID", length = 32, nullable = false)
	private String hourid;
	@Column(name = "CLASSID", length = 32, nullable = false)
	private String classid;
	@Column(name = "PTIME", length = 10, nullable = false)
	private Integer ptime;
	@Column(name = "USERKEY", length = 32, nullable = false)
	private String userkey;
	@Column(name = "LTIME", length = 8, nullable = false)
	private String ltime;
	@Column(name = "DURATION", length = 10, nullable = false)
	private Integer duration;

	public Integer getDuration() {
		return duration;
	}

	public void setDuration(Integer duration) {
		this.duration = duration;
	}
	public String getHourid() {
		return this.hourid;
	}

	public void setHourid(String hourid) {
		this.hourid = hourid;
	}

	public String getClassid() {
		return classid;
	}

	public void setClassid(String classid) {
		this.classid = classid;
	}

	public Integer getPtime() {
		return this.ptime;
	}

	public void setPtime(Integer ptime) {
		this.ptime = ptime;
	}

	public String getUserkey() {
		return userkey;
	}

	public void setUserkey(String userkey) {
		this.userkey = userkey;
	}

	public String getLtime() {
		return this.ltime;
	}

	public void setLtime(String ltime) {
		this.ltime = ltime;
	}

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}
}